Welcome to C# Tutorials. The objective of these tutorials is to gain an in-depth understanding of the C# Programming Language.
.NET Framework Supports collections of languages like VC#.net, VC++.net, VB.net……… .NET Framework is a common architecture for all .net programming languages. .NET - Network-enabled Technology. Visual C#. net………..visual C# with new features called as a net.
Platform independent. Language independent. Supports language interoperability. Supports pure OOP's concepts
Oops - Object-Oriented Programming Supports for network programming with .net Remoting Supports to develop background processes with the help of windows services. Developing or support to develop RICH GUI applications with WPF programming LINQ Programming
DLL (Dynamic-link library) (Executable) files are Executable in any OS with the help of (CLR/Common language run time ), hence .net is called “platform-independent”
CLR software is platform dependent. It is a separate version of CLR is introduced for every OS. .net is not purely platform-independent. As of new CLR, Software is not yet developed for dos and windows operating systems.
Language-Independent
net application logic can be developed in any .net framework compatible languages, hence .net is called as “LANGUAGE INDEPENDENT”. As of now. net framework is supporting 11 languages + 1 specification. Visual C # . net
Visual Basic .net
Visual J #.net
Visual C++ .net
VB Script.net
J Script .net
PHP .net
Python .net
COBOL.net
PERL.net
Small Talk .Net
.net support one specification called “ASP.net” Specification provides a set of rules which need to be followed while integrating with a code-behind language.
As per VB 6.0 or VC ++6.0 Windows OS
As per VB 6.0 or VC, ++6.0 DLL’s are called as COH Components. COM is used to develop reusable programs. Every COM Component must be registered for a class ID. Class ID represents a unique identifier, which is a part of the Registry. As Registry is under control of window OS, hence Com is “Platform-independent”.
As per.net As per .net, DLL’S Contain Platform independent code in the format of byte code. net DLL is also called as Managed code, Assembly or MSIL (Microsoft intermediate language ) The code written in .net is called as “managed code” If COM is used in .net then COM is called as “unmanaged code” .net framework is introduced as a development platform
C language
Main ()
{
Int I, * p;
P = &I;
}
As per memory management is under control of CLR with the help of a Garbage collector (GC), hence the .net framework is called as “Development platform”. .net framework is derived into the platform
Framework class library A collection of classes is called as “Namespace” A collection of Namespace is called as “Assembly” A collection of Assembly is called as “FCL” (Framework class library) FCL contains –6000 predefined class 6500 Methods 1,00,000 properties
The internal organization of a DLL file is called “Assembly Architecture”. Assembly is derived into three layers Main fest Information holds the summary of the project. Type Info holds the data type information of the languages. MSIL holds the competed code in the format of the BYTE Code. How CLR EXECUTES an ASSEMBLY?
CLR will be loaded into the memory. CLR loads the Main fest to understand the summary CLR loads type Info to understand the behavior of the language. CLR generates CTS (common type system) of CLS (Common language specifications)
Software Requirements Windows OS (XP, 2000p, 2005, 2003s, vista) Visual studio .net 2008 professional Edition IIS Server Oracle / SQL Server MS – office
A collection of programs is called as a “Software” Software is derived into two types
Packages Languages A software which is developed for a specific purpose is called as
“package”. Ex:- MS – office, oracle, SQL server, operating system. A software that is developed for a general-purpose is called a
“language”. Ex:- C, C ++, VC ++, Java, C #. Net, etc……… c- family Languages are derived into three types High-level language Assembly language Machine language A = 10 more 10 to Ax register flip flop gates High-level language are easier to learn as these are syntactically similar to English Assembly language are required while developing device driver programming Which provides communication between hardware and software Device drivers properties the communication than between the hardware and software
VC#.net language is architected by ANDREN HEZLSIBERG. VC#.net belongs to the 'C' family. All the rules of ‘C’ language are applicable to VC#.net also. C#.net is a high-level compiler-based programming language. .net is case sensitive. C#.net is a highly type-safe language. In C#, always Execution starts from main ().
Open.net software (Start programs micro soft visual studio 2008 micro soft visual studio 2008) (or) (Start runDevenv) File menunew project
Observation For every project a new folder will be created. by default, this folder name will be the same as the project name.
Default folder structure D:/C194 FIRSTBINDEBUGS DLL, EXE files will be sorted here. Default folder structure (viewmenusolution explorer)
Open program. cs file and write the following inside of main () Namespace FIRST
{ Class program { Static void Main (Strings [] args) { Console . Write Line (“Welcome”); Console . Write Line (“Date Time. Now”); Console . Read line (); Execute the project (F5) Start Debugging
Observations
When the above project is executed then the first.exe file will be created under the D:/c194/first/bin/debug folder. If you want to compile an application, print a message. Console. Write Line (“Welcome”); Syntax is required.
Date Time. Now the returns system date and time. Console. Read line () reads a string from the keyboard.
You liked the article?
Like: 0
Vote for difficulty
Current difficulty (Avg): Medium
TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.